package com.mall.b2c.domain.intergral;

import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.mall.common.domain.BaseEntity;

@Entity
@Table(name = "b2c_credit_shop_class")
public class ShopClassDomain extends BaseEntity{
	
	private String name;
	private Set<ShopProductDomain> product; 
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	@OneToMany(fetch=FetchType.LAZY, mappedBy="shopclass")
	public Set<ShopProductDomain> getProduct() {
		return product;
	}

	
	public void setProduct(Set<ShopProductDomain> product) {
		this.product = product;
	}
	
}
